<?php

class m130728_033950_add_thumbnailUrl_to_table_baigiang extends CDbMigration
{
    /*
	public function up()
	{
	}

	public function down()
	{
		echo "m130728_033950_add_thumbnailUrl_to_table_baigiang does not support migration down.\n";
		return false;
	}*/

	
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
                $this->execute("
                        ALTER TABLE `baigiang` ADD `thumbnailUrl` VARCHAR( 255 ) NULL 
                ");
                
                $this->execute("
                        ALTER TABLE `baigiang` CHANGE `description` `description` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL
                ");
	}

	public function safeDown()
	{
	}
	
}